{include file="$template_dir/layouts/main/content/content_header.html"}
{$entry.message nofilter}
{load_language_text section="hub_connector_updater" name="hub_connector_updater"}
{if $content.updateStatus.info.http_code === 200}
{$hub_connector_updater.UPDATES_AVAILABLE}
{$hub_connector_updater.NOTICE_TEXT}
{if count($content.updateStatus.body.updates) > 0}
{foreach item=update key=fromVersion from=$content.updateStatus.body.updates}
-
{if isset($update.description[$language_code]) && !empty($update.description[$language_code])}
{$update.description[$language_code]|unescape:"html" nofilter}
{elseif !isset($update.description[$language_code]) && isset($update.description) && !empty($update.description)}
{$update.description|unescape:"html" nofilter}
{else}
{$hub_connector_updater.VERSION_FROM} {$fromVersion} {$hub_connector_updater.VERSION_TO} {$update.version}
{/if}
{if in_array($update.version, $content.downloadedUpdates) && !$content.downloadBeforeUpdate}
{$hub_connector_updater.ALREADY_DOWNLOADED}
{/if}
{/foreach}
{if !$content.downloadBeforeUpdate}
{$hub_connector_updater.ACTION_DOWNLOAD}
{/if}
{if count($content.updateStatus.body.updates) === count($content.downloadedUpdates) || $content.downloadBeforeUpdate}
{$hub_connector_updater.ACTION_INSTALL}
{/if}
{else}
-
{$hub_connector_updater.NO_UPDATES}
{/if}
{/if}